<h1>show order</h1>
<table border="1" class="order">
  <tr>
    <th>標識番号 :</th>
    <td><%= @order.placename + @order.identity_letter + "_" + @order.identity_number%></td>
    <th>サイズ :</th>
    <td><%= @order.car_size%></td>
  </tr>
  <tr>
    <th>車種 :</th>
    <td><%= @order.car_type%></td>
    <th>塗装種類 :</th>
    <td><%= @order.paint_type%></td>
  </tr>
</table>
</br>
<table border="1" class="order_item" width=1000>
  <tr>
    <th rowspan=2>部位</th>
    <th rowspan=2>損傷形状</th>
    <th rowspan=2>損傷範囲</th>
    <th rowspan=2>損傷程度</th>
    <th rowspan=2>作業開始工程</th>
	<th colspan=6 align="center">鈑金工程</th>
	<th colspan=2 align="center">下地工程</th>
	<th align="center">塗装工程</th>
	<th colspan=3 align="center">仕上げ工程</th>
  </tr>
  <tr>
  	<th>着工分解</th>
    <th>カット</th>
    <th>修正機セット</th>
    <th>フレーム修正</th>
    <th>凹み修正</th>
    <th>鈑金パテ</th>
    <th>塗装パテ</th>
    <th>サフ足付け</th>
    <th>塗装</th>
    <th>組付</th>
    <th>組換</th>
    <th>磨き</th>
	<th rowspan=2 colspan=2>操作</th>
  </tr>
  <% @order.order_items.each do |order_item|%>
  	<tr>
  		<td rowspan=2><%= order_item.position.part%></td>
		<td rowspan=2><%= order_item.damage_shape%></td>
		<td rowspan=2><%= order_item.area_x.to_s + "CM" + "×" + order_item.area_y.to_s + "CM"%></td>
		<td rowspan=2><%= order_item.damage_degree%></td>
		<td rowspan=2><%= order_item.work_judge%></td>
  	</tr>
	<tr>
		<td><%= order_item.uninstall_index * 60.0%></td>
		<td><%= order_item.cut_index * 60.0%></td>
		<td><%= order_item.amend_index * 60.0%></td>
		<td><%= order_item.frame_amend_index * 60.0%></td>
		<td><%= order_item.metal_index * 60.0%></td>
		<td><%= order_item.metal_putty_index * 60.0%></td>
		<td><%= order_item.putty_index * 60.0%></td>
		<td><%= order_item.surface_index * 60.0%></td>
		<td><%= order_item.paint_index * 60.0%></td>
		<td><%= order_item.assemble * 60.0%></td>
		<td><%= order_item.recombine * 60.0%></td>
		<td><%= order_item.polish * 60.0%></td>
		<td width=35 align=center><%= link_to "削除",{:controller => :order_items, :action => :destroy_order_item, :id => order_item, :order_id => @order}, :confirm => "削除しますか", :method => :post%></td>
		<td width=35 align=center><%= link_to "編集",{:controller => :order_items, :action => :edit_order_item, :id => order_item, :order_id => @order}, :method => :post%></td>
	</tr>
  <%end%>
</table>
<br>

<%= link_to '  <<  ', orders_path %>